import AppTabbar from '@/layout/AppTabbar';
import AppPage from '@/layout/index';
const CottonRoute = [
  {
    path: '/cottonIn',
    component: AppTabbar,
    redirect: '',
    meta: {
      title: '棉花IN',
    },
    children: [
      {
        path: '',
        component: () => import('@/views/cotton-in/home'),
        name: 'CottonHome',
        meta: { title: '棉花IN首页' },
      },
      {
        path: 'orderList',
        component: () => import('@/views/cotton-in/order/OrderList'),
        name: 'OrderList',
        meta: { title: '棉花IN订单' },
      },
      {
        path: 'orderPreview',
        component: () => import('@/views/cotton-in/order/OrderPreview'),
        name: 'OrderPreview',
        meta: { title: '棉花IN订单预览' },
      },
    ],
  },
  {
    path: '/cottonIn',
    component: AppPage,
    redirect: '',
    meta: {
      title: '棉花IN',
    },
    children: [
      {
        path: 'printConfirmation',
        component: () => import('@/views/cotton-in/print-confirmation/index'),
        name: 'printConfirmation',
        meta: { title: '打印确认' },
      },
    ],
  },
  {
    path: '/cottonDetail/:id',
    component: () => import('@/views/cotton-in/CottonDetail'),
    name: 'CottonDetail',
    meta: { title: '棉花产品详情' },
  },
];

export default CottonRoute;
